libmy_test.so: t1.o t2.o
	gcc -shared -o libmy_test.so t1.o t2.o
t1.o: t1.c
	gcc -c -fPIC t1.c
t2.o: t2.c
	gcc -c -fPIC t2.c

.PHONY: pack
pack:
	mkdir -p mylib/include
	mkdir -p mylib/lib
	cp *.h mylib/include
	cp libmy_test.so mylib/lib
.PHONY: clean
clean:
	rm -rf *.o *.so

